package com.ruoyi.project.monitor.tarsmonitor.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * tars监控对象 tars_monitor
 * 
 * @author shixiangwen
 * @date 2020-03-23
 */
public class TarsMonitor extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** id */
	private Long id;

	/** 服务 */
	@Excel(name = "服务")
	private String server;

	/** 名称 */
	@Excel(name = "名称")
	private String name;

	/** 状态 */
	@Excel(name = "状态")
	private Integer status;

	/** 启用 */
	@Excel(name = "启用")
	private Integer enable;

	/** 最后监控时间 */
	@Excel(name = "最后监控时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date lastStatusTime;

	private String msg;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setServer(String server) {
		this.server = server;
	}

	public String getServer() {
		return server;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setLastStatusTime(Date lastStatusTime) {
		this.lastStatusTime = lastStatusTime;
	}

	public Date getLastStatusTime() {
		return lastStatusTime;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("server", getServer()).append("name", getName()).append("status", getStatus())
				.append("enable", getEnable()).append("lastStatusTime", getLastStatusTime()).toString();
	}
}
